<?php
include("./includes/common.php");
$data = array();
class User 
{
public $banner;
public $cp;
public $gz;
public $jili;
public $ys;
}
$banner = $DB -> get_row("select * from auth_gg where `k`='banner'");
$cp = $DB -> get_row("select * from auth_gg where `k`='cp'");
$gz= $DB -> get_row("select * from auth_gg where `k`='gz'");
$jili = $DB -> get_row("select * from auth_gg where `k`='jili'");
$ys = $DB -> get_row("select * from auth_gg where `k`='ys'");
{
$user = new User();
$user->banner = $banner["v"];
$user->cp= $cp["v"];
$user->gz= $gz["v"];
$user->jili= $jili["v"];
$user->ys= $ys["v"];
}
$json = json_encode([$user]);//把数据转换为JSON数据.
echo $json;
?>

